<?php

class exemption_m_tax extends a_base_model_datamapper {

    public function __construct($id=null) {
        $this->table = 'products_tax_exemptions';
        parent::__construct($id);
        $this->has_many = array(
        );
        $this->has_one = array(
        );
    }

    public function get_product_obj() {
        $obj = new product_m_product();
        return $obj->get_by_id($this->product_id)->exists() ? $obj : NULL;
    }

    public function get_tax_object(){        
        $obj = new tax_m_tax();        
        return $obj->get_by_id($this->tax_id)->exists() ? $obj : NULL;
    }

}

?>